
package com.example.kucun.controller;

import com.example.kucun.service.KuCunService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class KcController {

    @Autowired
    private KuCunService kuCunService;

    @GetMapping("/update")
    public void update(){
      log.info("我是库存接口");
      //模拟耗时
        try {
            Thread.sleep(4000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        log.info("调用完毕");
    }

}
